<div *ngIf="!inputSearch">
    <nz-input     id="searchaVal"  [nzType]="'search'"  [(ngModel)]="searsh"   [nzPlaceHolder]="title"  style="margin-bottom: 10px; width: 60%;" ></nz-input>
    <span  style="  width: 7%; margin-right: 3%; margin-left:3%; cursor: pointer"  (click)="treeClick('reset')" class="anticon anticon-sync"></span>
    <span style=" margin-right: 3%; cursor: pointer" class="anticon anticon-down-square-o"  (click)="treeClick('expand')"></span>
    <span style=" cursor: pointer" class="anticon anticon-up-square-o" (click)="treeClick('shrink')"></span>
</div>

<!--有拖动的树-->
<p-tree style="width: 100%;" *ngIf="!nodrop && !noMenu"
        [value]="files"
        [style]="{border:'0px'}"
        draggableNodes="true"
        droppableNodes="true"
        (onNodeSelect)="NodeSelect($event)"
        (onNodeContextMenuSelect)="RightSelect($event)"
        (onNodeExpand)="Unfold($event)"
        (onNodeDrop)="select($event)"
        [selectionMode]="selectionType"
        [contextMenu]="cm"
        [(selection)]="selectedFiles"></p-tree>




<!--没有拖动的树-->
<p-tree  *ngIf="nodrop && !noMenu" [value]="files"
      [style]="{border:'0px'}"
        (onNodeSelect)="NodeSelect($event)"
        (onNodeContextMenuSelect)="RightSelect($event)"
        (onNodeExpand)="Unfold($event)"
        (onNodeDrop)="select($event)"
       [selectionMode]="selectionType"
        [contextMenu]="cm"
        [(selection)]="selectedFiles">

</p-tree>

<!-- 没有右击菜单的checkbox菜树-->
<p-tree  *ngIf="noMenu" [value]="files"
         [style]="{border:'0px'}"
         (onNodeSelect)="NodeSelect($event)"
         (onNodeContextMenuSelect)="RightSelect($event)"
         (onNodeExpand)="Unfold($event)"
         (onNodeDrop)="select($event)"
         [selectionMode]="selectionType"
         [(selection)]="selectedFiles"></p-tree>

<p-contextMenu  #cm  [model]="items"></p-contextMenu>




